//
//  SecondViewController.m
//  PhotoBook
//
//  Created by Classic on 12/10/12.
//  Copyright (c) 2012 Hoang tuan. All rights reserved.
//

#import "SecondViewController.h"
#import "ImageViewController.h"

@interface SecondViewController ()

@end


UIImage *mImg;

@implementation SecondViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
	// Do any additional setup after loading the view, typically from a nib.
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (IBAction)natureClick:(id)sender {
    mImg = [UIImage imageNamed:@"nature-sunset-behind-images-wallpapers.jpg"];
}
-(IBAction)animalClick:(id)sender
{
    mImg = [UIImage imageNamed:@"animal-fun-009.jpg"];
}
-(void)dealloc
{
  
    [super dealloc];
}

-(void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
{
        ImageViewController *mImgViewControl = segue.destinationViewController;
        mImgViewControl.mImg = mImg;
        mImgViewControl.str = @"sended";
}
@end
